package cn.org.qary.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;


/**
 * 用户类，描述用户的相关信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

  /**
   * 主键， id
   */
  @Id
  @KeySql(useGeneratedKeys = true)
  private Integer id;
  /**
   * 用户名
   */
  private String username;
  /**
   * 昵称
   */
  private String nickname;

  private String password;
  private String gender;
  private String birthday;
  private String location;
  private String image;
  /**
   * 权限，取值未<code>普通用户</code>或<code>管理员</code>
   */
  private String permission;



}
